cmake_minimum_required(VERSION 3.6.0)
# 设置项目名称
project(design_patterns)

# 设置c++标准版本
set(CMAKE_CXX_STANDARD 14)

# 项目包含目录
include_directories(${PROJECT_SOURCE_DIR}/include)
# 依赖包含目录

# 递归搜索项目目录下的所有文件
file(GLOB_RECURSE SOURCE_FILES ${PROJECT_SOURCE_DIR}/src/*.cpp)


# 设置编译输出路径
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)

# 生成可执行文件
add_executable(${PROJECT_NAME} ${SOURCE_FILES})